<template>
	<view>
	这是直播
	</view>
</template>

<script>
	export default {
		name:"live-broadcast",
		data() {
			return {
				
			};
		},
		props:{
			idx: {
				type: Number
			},
		},
		watch: {
			idx: {
				handler(newValue,oldVale) {
					if(newValue == 2&&!this.$store.getters.newArr.includes(2)) {
						console.log('直播执行了')
						this.$store.commit('GET_ARR',newValue)
					}
				},
				immediate: true
			}
			
		},
	}
</script>

<style lang="scss">

</style>